const yiliao = L.icon({ iconUrl: '/assets/imgs/map_icon_1.png', iconSize: [30, 30] })
const xiaofang = L.icon({ iconUrl: '/assets/imgs/map_icon_2.png', iconSize: [30, 30] })
const baozhang = L.icon({ iconUrl: '/assets/imgs/map_icon_3.png', iconSize: [30, 30] })
const wuzi = L.icon({ iconUrl: '/assets/imgs/map_icon_4.png', iconSize: [30, 30] })
const sheshi = L.icon({ iconUrl: '/assets/imgs/map_icon_5.png', iconSize: [30, 30] })
const jiuyuan = L.icon({ iconUrl: '/assets/imgs/map_icon_6.png', iconSize: [30, 30] })
const yunzai = L.icon({ iconUrl: '/assets/imgs/map_icon_7.png', iconSize: [30, 30] })
const test1 = L.icon({ iconUrl: '/assets/imgs/map_icon_test1.png', iconSize: [30, 30] })
const test2 = L.icon({ iconUrl: '/assets/imgs/map_icon_test2.png', iconSize: [30, 30] })
const test3 = L.icon({ iconUrl: '/assets/imgs/map_icon_test3.png', iconSize: [30, 30] })
const test4 = L.icon({ iconUrl: '/assets/imgs/map_icon_test4.png', iconSize: [30, 30] })
const plant = L.icon({ iconUrl: '/assets/imgs/plant_icon.png', iconSize: [30, 30] })
const airport = L.icon({ iconUrl: '/assets/imgs/airport_icon.png', iconSize: [50, 50] })
const airport_square = L.icon({ iconUrl: '/assets/imgs/near_airport.png', iconSize: [30, 30] })
const aeroResIcon_1 = L.icon({ iconUrl: '/assets/imgs/aero-res-icon-1.png', iconSize: [50, 50] })
const aeroResIcon_2 = L.icon({ iconUrl: '/assets/imgs/aero-res-icon-2.png', iconSize: [50, 50] })
const aeroResIcon_3 = L.icon({ iconUrl: '/assets/imgs/aero-res-icon-3.png', iconSize: [50, 50] })
const aeroResIcon_4 = L.icon({ iconUrl: '/assets/imgs/aero-res-icon-4.png', iconSize: [50, 50] })
const aeroResIcon_5 = L.icon({ iconUrl: '/assets/imgs/aero-res-icon-5.png', iconSize: [50, 50] })
const aeroResIcon_6 = L.icon({ iconUrl: '/assets/imgs/aero-res-icon-6.png', iconSize: [50, 50] })
const aeroResIcon_7 = L.icon({ iconUrl: '/assets/imgs/aero-res-icon-7.png', iconSize: [50, 50] })
const aeroResIcon_8 = L.icon({ iconUrl: '/assets/imgs/aero-res-icon-8.png', iconSize: [50, 50] })

export default {
  yiliao: yiliao,
  xiaofang: xiaofang,
  baozhang: baozhang,
  wuzi: wuzi,
  sheshi: sheshi,
  jiuyuan: jiuyuan,
  yunzai: yunzai,
  test1: test1,
  test2: test2,
  test3: test3,
  test4: test4,
  plant: plant,
  airport: airport,
  airport_square: airport_square,
  aeroResIcon_1: aeroResIcon_1,
  aeroResIcon_2: aeroResIcon_2,
  aeroResIcon_3: aeroResIcon_3,
  aeroResIcon_4: aeroResIcon_4,
  aeroResIcon_5: aeroResIcon_5,
  aeroResIcon_6: aeroResIcon_6,
  aeroResIcon_7: aeroResIcon_7,
  aeroResIcon_8: aeroResIcon_8,
  airportWithName: (cnname) => {
    return L.divIcon({
      className: "map-airport-icon",
      iconAnchor: [25, 60],
      html: `<div class='map-airport-box'><div class='map-airport-title'>${cnname}</div><img src='/assets/imgs/airport_icon.png' width='50' height='50' /></div>`,
    })
  },
  makeIcon: (type) => {
    switch (type) {
      case '1':
        return yiliao;
      case '2':
        return xiaofang;
      case '3':
        return baozhang;
      case '4':
        return wuzi;
      case '5':
        return sheshi;
      case '6':
        return jiuyuan;
      case '7':
        return yunzai;
      case '8':
        return test2;
      case '9':
        return test3;
      case '10':
        return test4;
      case 'plant':
        return plant;
      case 'airport':
        return airport;
    }
  }
}